import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import store from './store/store'

Vue.config.productionTip = false
import uView from '@/uni_modules/uview-ui'
import tools from 'tools/toolsmain.js'


App.mpType = 'app'
const app = new Vue({
    ...App,store,
	beforeCreate() {
		Vue.prototype.$bus = this
	}
})
app.$mount()
Vue.use(uView)
Vue.use(tools,app)
require('./config/request.js')(app)
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif